<head>
<style>
@import url("resources/css-insert-import-rule-red.css");
div {
    width: 100px;
    height: 100px;
}
</style>

<script>
document.styleSheets[0].insertRule('@import url("resources/css-insert-import-rule.css");', 0);
if (window.testRunner)
    testRunner.waitUntilDone();

function test() {
    if (location.href.indexOf("?") == -1)
        location.href = location.href + "?";
    else if (window.testRunner)
        testRunner.notifyDone();
}
</script>

</head>
<body onload="test()";>
<div></div>
</body>
